﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PlanningGIS.ArcGIS.Custom;

namespace PlanningGIS.Engine.Controls
{
    /// <summary>
    /// 数据操作完成委托
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    public delegate void DataFinished(object sender, DataEventArgs e);

    /// <summary>
    /// 数据操作事件参数
    /// </summary>
    public class DataEventArgs : EventArgs
    {
        /// <summary>
        /// 操作的数据
        /// </summary>
        public dynamic Data { get; set; }

        /// <summary>
        /// 路径改变的类型
        /// </summary>
        public zjgisChangeType ChangeType { get; set; }

    }

    /// <summary>
    /// 改变目录的方式
    /// </summary>
    public enum zjgisChangeType
    {
        /// <summary>
        /// 目录节点
        /// </summary>
        Dir,
        /// <summary>
        /// 文件节点
        /// </summary>
        File,
        /// <summary>
        /// 文件名称输入框
        /// </summary>
        FileName,
        /// <summary>
        /// 目录名称输入框
        /// </summary>
        DirName
    }

    /// <summary>
    /// 作用：空间数据后缀名
    /// </summary>
    public class PostFix
    {
        /// <summary>
        /// 
        /// </summary>
        public const string SDE = ".sde";
        /// <summary>
        /// 
        /// </summary>
        public const string DGN = ".dgn";
        /// <summary>
        /// 
        /// </summary>
        public const string DWG = ".dwg";
        /// <summary>
        /// 
        /// </summary>
        public const string DXF = ".dxf";
        /// <summary>
        /// 
        /// </summary>
        public const string RASTER = ".jpg.png.bmp.gif.tif.jpeg.emf.img";
        /// <summary>
        /// 
        /// </summary>
        public const string SHP = ".shp";
        /// <summary>
        /// 
        /// </summary>
        public const string MDB = ".mdb";
        /// <summary>
        /// 
        /// </summary>
        public const string GDB = ".gdb";
        /// <summary>
        /// 
        /// </summary>
        public const string LYE = ".lyr";
        /// <summary>
        /// 
        /// </summary>
        public const string LAS = ".las";
        /// <summary>
        /// 
        /// </summary>
        public const string LASD = ".lasd";
        /// <summary>
        /// excel格式
        /// </summary>
        public const string XLS = ".xls.xlsx";
    }

}
